import { http } from '@/utils/http';
import type { AnyObj } from '@/types/global';
export const getBannerList = () => {
	return http<AnyObj[]>({
		method: 'GET',
		url: '/wx/banner/list'
	});
}

export const getLawfirmList = () => {
	return http<AnyObj[]>({
		method: 'GET',
		url: '/wx/lawfirm/listHome'
	});
}

export const getHomeArticleList = (categoryId : number) => {
	return http<AnyObj[]>({
		method: 'GET',
		url: '/wx/article/listByHome',
		data: { categoryId }
	});
}